<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
  <title>关键字管理</title>
  <link rel="stylesheet" href="../static/css/bootstrap.min.css">
  <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
  <link href="css/base.css" rel="stylesheet" type="text/css">
  <style>
    .nnpp {
      border-bottom: 1px solid #666666;
      border-top: 1px solid #FFFFFF;
      border-left: 1px solid #FFFFFF;
      border-right: 1px solid #FFFFFF;
      filter: alpha(opacity=50);
    }
  </style>
  <script language='javascript'>
    function selAll() {
      var celements = document.getElementsByName('aids[]');
      for (i = 0; i < celements.length; i++) {
        if (!celements[i].checked) celements[i].checked = true;
        else celements[i].checked = false;
      }
    }
  </script>
</head>

<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
  <div class="main">
    <table width="98%" border="0" cellpadding="1" align='center' cellspacing="1" bgcolor="#D6D6D6"
      class="table maintable table-bordered mt-3">
      <tr>
        <td height="26" colspan="6" background="images/tbg.gif">
          <table width="96%" border="0" class="table table-borderless">
            <tr>
              <td width="25%" style="padding-left:10px;"><strong>关键词维护</strong></td>
              <form name='form1' action="article_keywords_main.php">
                <td width="75%" align="right">
                  搜索：<input type='text' name='keyword' size='20' />
                  <button type='submit' name='sb' value='' class="btn btn-secondary btn-sm">确定</button>
                  &nbsp;
                  <button class="btn btn-secondary btn-sm" name="n1" type="button" id="n1"
                    onClick="location='article_keywords_make.php';">分析系统内的关键字</button>
                  &nbsp;
                  <button class="btn btn-secondary btn-sm" name="n11" type="button" id="n11"
                    onClick="location='search_keywords_main.php';">管理搜索的关键字</button>
                </td>
              </form>
            </tr>
          </table>
        </td>
      </tr>
      <form name='form2' action="article_keywords_main.php">
        <input type='hidden' name='dopost' value='add' />
        <tr align="center" bgcolor="#ffffff">
          <td width="100%" height="30" colspan="6">
            <table border="0" cellspacing="0" cellpadding="0" class="table table-borderless">
              <tr>
                <td width="100" align="center">新增关键字：</td>
                <td width="140"><input name="keyword" type="text" id="keyword"/></td>
                <td width="100">链接网址：</td>
                <td width="140"><input name="rpurl" type="text" id="rpurl"/></td>
                <td width="80">频率：</td>
                <td width="60"><input name="rank" type="text" id="rank" style="width:50px" value="30" /></td>
                <td width="80"><button type="submit" name="Submit" class="btn btn-secondary btn-sm">保存</button></td>
              </tr>
            </table>
          </td>
        </tr>
      </form>
      <tr align="center" bgcolor="#FBFCE2" height="26">
        <td width="8%">选择</td>
        <td width="25%">关键字</td>
        <td width="35%">链接网址</td>
        <td width="10%">频率</td>
        <td width="22%">管理</td>
      </tr>
      <form name='form3' action="article_keywords_main.php" method="post">
        <input type='hidden' name='dopost' value='saveall' />
        {dede:datalist}
        <tr align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';"
          onMouseOut="javascript:this.bgColor='#FFFFFF';">
          <td height="24">
            <input name="aids[]" type="checkbox" value="{dede:field.aid/}" class="np" checked='1' />
          </td>
          <td>
            <input type='hidden' value='{dede:field.keyword/}' name='keyword_{dede:field.aid/}' />
            {dede:field.keyword/}
          </td>
          <td style="padding:5px 0;">
            <input type='hidden' value='{dede:field.rpurl/}' name='rpurlold_{dede:field.aid/}' />
            <input type='text' style='width:90%' class='nnpp' value='{dede:field.rpurl/}'
              name='rpurl_{dede:field.aid/}' />
          </td>
          <td>
            <input type='text' size='5' class='nnpp' value='{dede:field.rank/}' name='rank_{dede:field.aid/}' />
          </td>
          <td>
            <input type='hidden' name='staold_{dede:field.aid/}' value='{dede:field.sta/}' />
            <label><input type='checkbox' name='isnouse_{dede:field.aid/}' class='np' value='1' {dede:field.sta
              function="GetSta(@me)" /} />
            禁用</label>
            &nbsp;
            <label><input type='checkbox' name='isdel_{dede:field.aid/}' class='np' value='1' />
            删除</label>
          </td>
        </tr>
        {/dede:datalist}
        <tr bgcolor="#ffffff">
          <td height="28" colspan="6">
            &nbsp;
            <button type="button" name="dl1" class="btn btn-secondary btn-sm" onClick="selAll()">反选</button>
            &nbsp;
            <button type="button" name="dl2" class="btn btn-secondary btn-sm" onClick="this.form.submit();">保存更改</button>
          </td>
        </tr>
      </form>
      <tr align="center" bgcolor="#F9FCEF">
        <td height="28" colspan="6">
          {dede:pagelist listsize=3/}
        </td>
      </tr>
    </table>
  </div>
</body>

</html>